.ai-video-generator-container {
  min-height: 100vh;
  background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 100%);
  color: white;
  padding-top: 60px; /* Account for fixed header */
}

.ai-video-generator-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 30px 20px;
}

.ai-video-generator-header {
  text-align: center;
  margin-bottom: 40px;
}

.ai-video-generator-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 10px;
  background: linear-gradient(135deg, #00ffff, #0080ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.ai-video-generator-subtitle {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.7);
  max-width: 600px;
  margin: 0 auto;
}

.token-warning {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
  padding: 12px 20px;
  background: rgba(255, 193, 7, 0.2);
  border: 1px solid rgba(255, 193, 7, 0.5);
  border-radius: 8px;
  color: #ffc107;
}

.warning-icon {
  font-size: 1.2rem;
}

.config-btn {
  padding: 6px 12px;
  background: rgba(255, 193, 7, 0.3);
  border: 1px solid rgba(255, 193, 7, 0.5);
  border-radius: 6px;
  color: #ffc107;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.config-btn:hover {
  background: rgba(255, 193, 7, 0.4);
  transform: translateY(-1px);
}

/* Tab Navigation */
.tab-navigation {
  display: flex;
  justify-content: center;
  margin-bottom: 30px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.tab-btn {
  padding: 12px 24px;
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  transition: all 0.3s ease;
}

.tab-btn:hover {
  color: #00ffff;
}

.tab-btn.active {
  color: #00ffff;
  border-bottom-color: #00ffff;
}

/* Create Video Tab */
.create-video-tab {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

/* Photo Upload Section */
.photo-upload-section {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  padding: 30px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.photo-upload-section:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 255, 255, 0.2);
}

.photo-upload-section h2 {
  margin-bottom: 20px;
  color: white;
}

.upload-area {
  border: 2px dashed rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  padding: 40px;
  text-align: center;
  transition: all 0.3s ease;
  margin-bottom: 20px;
  background: rgba(0, 0, 0, 0.2);
}

.upload-area:hover {
  border-color: #00ffff;
  background: rgba(0, 255, 255, 0.05);
}

.upload-label {
  cursor: pointer;
  display: block;
}

.upload-icon {
  font-size: 3rem;
  margin-bottom: 15px;
  color: #00ffff;
}

.upload-label p {
  margin: 5px 0;
  color: rgba(255, 255, 255, 0.7);
}

.selected-photos h3 {
  margin-bottom: 15px;
  color: white;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 15px;
}

.photo-item {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.photo-thumbnail {
  width: 100%;
  height: 120px;
  cursor: pointer;
  overflow: hidden;
}

.photo-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.photo-thumbnail:hover img {
  transform: scale(1.05);
}

.remove-photo-btn {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 24px;
  height: 24px;
  background: rgba(0, 0, 0, 0.7);
  border: none;
  border-radius: 50%;
  font-size: 16px;
  color: #ff4757;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.remove-photo-btn:hover {
  background: rgba(255, 71, 87, 0.8);
}

/* Video Description Section */
.video-description-section {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  padding: 30px;
  margin-bottom: 30px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.video-description-section:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 255, 255, 0.2);
}

.video-description-section h2 {
  margin-bottom: 20px;
  color: white;
}

.description-input-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.description-textarea {
  width: 100%;
  padding: 15px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  color: white;
  font-size: 1rem;
  font-family: inherit;
  resize: vertical;
  min-height: 100px;
  transition: all 0.3s ease;
}

.description-textarea:focus {
  outline: none;
  border-color: #00ffff;
  box-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
}

.description-textarea::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.field-help {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 5px;
}

/* Video Options Section */
.video-options-section {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  padding: 30px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.video-options-section:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 255, 255, 0.2);
}

.video-options-section h2 {
  margin-bottom: 20px;
  color: white;
}

.options-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.option-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.option-group label {
  font-weight: 500;
  color: white;
}

.option-group input[type="range"] {
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.1);
  outline: none;
  -webkit-appearance: none;
}

.option-group input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #00ffff;
  cursor: pointer;
}

.option-group input[type="range"]::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #00ffff;
  cursor: pointer;
  border: none;
}

.option-value {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  text-align: center;
}

.option-group select {
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  font-size: 1rem;
  background: rgba(0, 0, 0, 0.3);
  color: white;
}

/* Generate Section */
.generate-section {
  text-align: center;
}

.generate-btn {
  padding: 15px 40px;
  background: linear-gradient(135deg, #00ffff, #0080ff);
  color: white;
  border: none;
  border-radius: 30px;
  font-size: 1.1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.generate-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 255, 255, 0.4);
}

.generate-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.loading-spinner {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: white;
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Generation Status */
.generation-status {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  padding: 30px;
  margin-top: 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.generation-status:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 255, 255, 0.2);
}

.generation-status h3 {
  margin-bottom: 20px;
  color: white;
}

.progress-bar {
  width: 100%;
  height: 10px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 5px;
  overflow: hidden;
  margin-bottom: 15px;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #00ffff, #0080ff);
  transition: width 0.5s ease;
}

.generation-status p {
  margin: 5px 0;
  color: rgba(255, 255, 255, 0.7);
}

/* Video History Tab */
.video-history-tab {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  padding: 30px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.video-history-tab:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 255, 255, 0.2);
}

.video-history-tab h2 {
  margin-bottom: 20px;
  color: white;
}

.video-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.video-item {
  display: flex;
  gap: 20px;
  padding: 20px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.video-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 255, 255, 0.2);
}

.video-thumbnail {
  width: 150px;
  height: 100px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  position: relative;
}

.video-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-player {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
}

.video-player:hover {
  box-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

.video-play-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 8px;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.video-thumbnail:hover .video-play-overlay {
  opacity: 1;
}

.video-play-icon {
  width: 50px;
  height: 50px;
  background: rgba(0, 255, 255, 0.8);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: white;
}

.video-info {
  flex-grow: 1;
}

.video-name {
  margin-bottom: 8px;
  color: white;
}

.video-details {
  margin: 5px 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}

.video-date {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.8rem;
}

.video-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.video-action-btn {
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  font-size: 18px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.video-action-btn:hover {
  transform: scale(1.1);
  background: rgba(0, 255, 255, 0.2);
}

.video-action-btn.delete:hover {
  background: rgba(255, 71, 87, 0.2);
}

/* No Videos State */
.no-videos {
  text-align: center;
  padding: 60px 20px;
}

.no-videos-icon {
  font-size: 4rem;
  margin-bottom: 20px;
  color: #00ffff;
}

.no-videos h3 {
  margin-bottom: 10px;
  color: white;
}

.no-videos p {
  margin-bottom: 20px;
  color: rgba(255, 255, 255, 0.7);
}

.create-first-video-btn {
  padding: 12px 24px;
  background: linear-gradient(135deg, #00ffff, #0080ff);
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.create-first-video-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 255, 255, 0.4);
}

/* Responsive Design */
@media (max-width: 768px) {
  .ai-video-generator-content {
    padding: 15px;
  }
  
  .ai-video-generator-title {
    font-size: 2rem;
  }
  
  .options-grid {
    grid-template-columns: 1fr;
  }
  
  .photo-grid {
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  }
  
  .video-item {
    flex-direction: column;
  }
  
  .video-thumbnail {
    width: 100%;
    height: 200px;
  }
  
  .video-actions {
    justify-content: center;
  }
}